#ifndef __MYLOG_H__
#define __MYLOG_H__
//밑줄 빨간색
#define logQ(...) {av_log(NULL, AV_LOG_QUIET, "%s%4d:", __FUNCTION__, __LINE__); av_log(NULL, AV_LOG_QUIET, __VA_ARGS__);}
#define logP(...) {av_log(NULL, AV_LOG_PANIC, "%s%4d:", __FUNCTION__, __LINE__); av_log(NULL, AV_LOG_PANIC, __VA_ARGS__);}
#define logF(...) {av_log(NULL, AV_LOG_FATAL, "%s%4d:", __FUNCTION__, __LINE__); av_log(NULL, AV_LOG_FATAL, __VA_ARGS__);}

//굵은 빨간색
#define logE(...) {av_log(NULL, AV_LOG_ERROR, "%s%4d:", __FUNCTION__, __LINE__); av_log(NULL, AV_LOG_ERROR, __VA_ARGS__);}

//노란색
#define logW(...) {av_log(NULL, AV_LOG_WARNING, "%s%4d:", __FUNCTION__, __LINE__); av_log(NULL, AV_LOG_WARNING, __VA_ARGS__);}

//검은색:일반
#define logI(...) {av_log(NULL, AV_LOG_INFO, "%s%4d:", __FUNCTION__, __LINE__); av_log(NULL, AV_LOG_INFO, __VA_ARGS__);}

//녹색
#define logV(...) {av_log(NULL, AV_LOG_VERBOSE, "%s%4d:", __FUNCTION__, __LINE__); av_log(NULL, AV_LOG_VERBOSE, __VA_ARGS__);}
#define logD(...) {av_log(NULL, AV_LOG_DEBUG, "%s%4d:", __FUNCTION__, __LINE__); av_log(NULL, AV_LOG_DEBUG, __VA_ARGS__);}

#endif
